package com.mac.hosp_pre.util;

import com.mac.hosp_pre.handler.RefreshTokenHandler;

public class MainTest {
    public static void main(String[] args) {
        String token = JwtUtil.createToken(100L, "admin");
        RefreshTokenHandler consumer = (String loginRedisKey, long expiration, Object userInfo) ->{
            System.out.println("loginRedisKey="+loginRedisKey);
            System.out.println("expiration="+expiration);
            System.out.println("userInfo="+userInfo);
        };
      /*  long currentTime = System.currentTimeMillis();
        currentTime += 1000*60;
        User userInfo = new User(100L,"admin",currentTime);
        JwtUtil.verifyToken(token,true,userInfo,null,consumer);*/
       // consumer.beforeHandler(true,token,20*60,new Object(),consumer);
    }



}
